package hu.bme.swipe;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;

import com.viewpagerindicator.PageIndicator;
import com.viewpagerindicator.TitlePageIndicator;

public class SwipetesztActivity extends FragmentActivity {
    /** Called when the activity is first created. */
	
	TestFragmentAdapter mAdapter;
	ViewPager mPager;
	PageIndicator mIndicator;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.simple_titles);

	mAdapter = new TestTitleFragmentAdapter(getSupportFragmentManager());

	mPager = (ViewPager)findViewById(R.id.pager);
	mPager.setAdapter(mAdapter);

	mIndicator = (TitlePageIndicator)findViewById(R.id.indicator);
	mIndicator.setViewPager(mPager);
	}
}